Component({
  behaviors: ['wx://form-field'],
  properties: {
    text: {
      type: String,
      value: '标题'
    },
    tip: {
      type: String,
      value: ''
    },
    rightIcon: {
      type: Boolean,
      value: false
    },
    xing: {
      type: Boolean,
      value: false
    },
    value: {
      type: String,
      value: ''
    },
    type: {
      type: String,
      value: 'text'
    },
    textarea: {
      type: Boolean,
      value: false
    },
    styles: {
      type: String,
      value: 'default'
    },
    disabled: {
      type: Boolean,
      value: false
    }
  },
  data: {},
  methods: {
    getInputValue(e) {
      this.setData({
        value: e.detail.value
      })
    }
  }
})
